#!/bin/bash

appCode=titan-template
version=v1
imageAddr="harbor-dmz.yunzhen-data.com/ad-dev/${appCode}:${version}"

# 注入环境变量
export APP_CODE=${appCode}
export NAMESPACE="hexu-ext-demo"
export REPLICAS="1"
export IMG_VER=${imageAddr}
export IMG=${version}
export APP_PORT=8089
# 启动yaml文件
envsubst < ./deployment.yaml | kubectl apply -f -
